from django import forms


class VerificationCodeForm(forms.Form):
    email = forms.EmailField()


class RegisterForm(forms.Form):
    username = forms.CharField()
    password = forms.CharField()
    email = forms.EmailField()
    code = forms.CharField()


class LoginForm(forms.Form):
    email = forms.EmailField()
    password = forms.CharField(required=False)
    code = forms.CharField(required=False)


class UserInfoForm(forms.Form):
    username = forms.CharField()
    personal_profile = forms.CharField(required=False)
    sex = forms.IntegerField(required=False)
    email = forms.EmailField()
    avatar = forms.CharField(required=False)
    birthday = forms.DateTimeField()


class UpdateEmailForm(forms.Form):
    email = forms.EmailField()
    code = forms.CharField()


class CampusIdentityForm(forms.Form):
    campus_name = forms.CharField()
    major = forms.CharField()
    class_name = forms.CharField()
    admission_date = forms.DateField()
